<?php
namespace modules\iChat\services;

use modules\iChat\caches\SocketCache;
use modules\iChat\objects\Session;

class SessionService
{
	//点点 点组
	public static function msgDeal(Array $stream)
	{
		/*$stream['type'] = 1 | 0;
		$stream['message'] = '你们好';
		$stream['uid'] = '';//用户ID、 群组ID
		$stream['tid'] = */
		//.....
		$session = Session::getInstance($stream['uid'], $stream['tid'], 
			$stream['type'],  $stream['message']);
		$session->send();

	}
}